package com.jbit.hxy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.jbit.hxy.common.Result;
import com.jbit.hxy.mapper.WxDishFlavorMapper;
import com.jbit.hxy.model.dto.FlavorQueryDTO;
import com.jbit.hxy.model.po.WxDishFlavor;
import com.jbit.hxy.model.po.WxSetmeal;
import com.jbit.hxy.model.vo.PageVO;
import com.jbit.hxy.service.menu.WxDishFlavorService;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 28575
* @description 针对表【wx_dish_flavor(菜品口味关系表)】的数据库操作Service实现
* @createDate 2024-09-13 09:24:36
*/
@Service
@RequiredArgsConstructor
public class WxDishFlavorServiceImpl extends ServiceImpl<WxDishFlavorMapper, WxDishFlavor>
    implements WxDishFlavorService {
    private final WxDishFlavorMapper wxDishFlavorMapper;
    @Override
    public Result getFlavor() {
        List<WxDishFlavor> wxDishFlavors = wxDishFlavorMapper.getDishFavor();
        return Result.success(wxDishFlavors);

    }
}




